<template>
  <div>
    <Pager :total="total" :current="current" @pageChange="handlePageChange($event)" />
  </div>
</template>

<script>
import Pager from './';
export default {
  //注册组件
  components: {
    Pager,
  },
  data(){
    return{
      current:1,
      total:300,
    }
  },
  methods:{
    handlePageChange(newPage){
      // console.log(newPage);
      this.current=newPage;
    }
  }
}
</script>